﻿<!DOCTYPE html>
<html lang=zh-cmn-Hans>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
     {% load staticfiles %}
    <link REL="SHORTCUT ICON" HREF="{% static "images/favicon.ico" %}"/>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
{% block title %}{% endblock %}
{% block style %}{% endblock %}
</head>
<body >
{% block body1 %}{% endblock %}
<div class="container" >
    <div class="row">
            {% block bodymain %}{% endblock %}
    </div>
</div>
</body>
{% block script %}{% endblock %}
<script>
     $(document).ready(function(){
    $.getJSON("/getstatus/",function(data){
		    user=data.user;
		    uid=data.uid
		    if (user=='False'){
		        $('#status1').hide();
		        $('#status2').hide();
            }
		    else {
		        $('#weclome1').hide();
		        $('#weclome2').hide();
                imglink = data.imglink;
                $('#user').html(user+'(uid:'+uid+')');
                $('#headimg').attr({src: imglink});
            }
        })
	});
</script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</html>